package com.application.model.elegircolegio.entries;

import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class ElegirColegioEntity implements Serializable {

	private static final long serialVersionUID = -5431682808824883665L;

	private Map<String, ElegirColegioElement>  map;
	
	public ElegirColegioEntity() {
		map = new HashMap<String, ElegirColegioElement>();
	}
	public void addElement(ElegirColegioElement element){
		if(element!=null){
			map.put(element.getNombreColegio(), element);
		}
	}
	public ElegirColegioElement getElegirColegioElement(String nombreColegio){
		return map.get(nombreColegio);
	}
	public Map<String, ElegirColegioElement> getMap() {
		return map;
	}
	public void setMap(Map<String, ElegirColegioElement> map) {
		this.map = map;
	}
	public Collection<ElegirColegioElement> getValues(){
		return map.values();
	}
}
